<template>
  <div class="q-pa-md" style="max-width: 300px">
    <div class="q-gutter-md">
      <t-badge color="secondary" multi-line> Model: "{{ model }}" </t-badge>

      <t-select
        filled
        v-model="model"
        :options="options"
        label="Standard"
        color="teal"
        clearable
        options-selected-class="text-deep-orange"
      >
        <template v-slot:option="scope">
          <t-item v-bind="scope.itemProps">
            <!-- <t-item-section avatar>
              <t-icon :name="scope.opt.icon" />
            </t-item-section>
            <t-item-section>
              <t-item-label>{{ scope.opt.label }}</t-item-label>
              <t-item-label caption>{{ scope.opt.description }}</t-item-label>
            </t-item-section> -->
          </t-item>
        </template>
      </t-select>
    </div>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        model: ref(null),

        options: [
          {
            label: 'Google',
            value: 'Google',
            description: 'Search engine',
            icon: 'mail',
          },
          {
            label: 'Facebook',
            value: 'Facebook',
            description: 'Social media',
            icon: 'bluetooth',
          },
          {
            label: 'Twitter',
            value: 'Twitter',
            description: 'Quick updates',
            icon: 'map',
          },
          {
            label: 'Apple',
            value: 'Apple',
            description: 'iStuff',
            icon: 'golf_course',
          },
          {
            label: 'Oracle',
            value: 'Oracle',
            disable: true,
            description: 'Databases',
            icon: 'casino',
          },
        ],
      };
    },
  };
</script>
